package org.jivesoftware.smackx;

import java.util.List;
import org.jivesoftware.smackx.packet.MultipleAddresses;
import org.jivesoftware.smackx.packet.MultipleAddresses.Address;

public class MultipleRecipientInfo
{
  MultipleAddresses extension;

  MultipleRecipientInfo(MultipleAddresses paramMultipleAddresses)
  {
    this.extension = paramMultipleAddresses;
  }

  public List<MultipleAddresses.Address> getTOAddresses()
  {
    return this.extension.getAddressesOfType("to");
  }

  public List<MultipleAddresses.Address> getCCAddresses()
  {
    return this.extension.getAddressesOfType("cc");
  }

  public String getReplyRoom()
  {
    List localList = this.extension.getAddressesOfType("replyroom");
    return localList.isEmpty() ? null : ((MultipleAddresses.Address)localList.get(0)).getJid();
  }

  public boolean shouldNotReply()
  {
    return !this.extension.getAddressesOfType("noreply").isEmpty();
  }

  public MultipleAddresses.Address getReplyAddress()
  {
    List localList = this.extension.getAddressesOfType("replyto");
    return localList.isEmpty() ? null : (MultipleAddresses.Address)localList.get(0);
  }
}

/* Location:           D:\hygieia\userclient\common\libs\easemobchat_2.1.8.jar
 * Qualified Name:     org.jivesoftware.smackx.MultipleRecipientInfo
 * JD-Core Version:    0.6.1
 */